package org.espers.beatrice.server.sei;

import javax.xml.ws.Binding;
import java.util.List;
import java.util.LinkedList;
import javax.xml.ws.handler.Handler;

import javax.xml.ws.Endpoint;

public class Bootstrap {
    
    public Bootstrap() {
    }

    public static void main (String [] args) throws Exception
   {
        ServiceServer server = new ServiceServer();
           
        Endpoint endpoint = Endpoint.publish("http://localhost:9090/BeatriceServer", server);
        
        Binding binding = endpoint.getBinding();      
        List<Handler> handlerChain = new LinkedList<Handler>();
        handlerChain.add(new org.espers.beatrice.server.sei.TraceHandler());
        binding.setHandlerChain(handlerChain);
        System.out.println("BeatriceServer is open for business at http://locahost:9090/BeatriceServer");
   }   

}
